home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / printing / nenscrip.000 / nenscrip / nenscript-1.13++ / paper.h < prev    next >
C/C++ Source or Header  |  1992-10-01  |  2KB  |  68 lines

  1. /*
  2.  * $Id: paper.h,v 1.1 1992/10/02 01:02:32 craigs Exp $
  3.  */
  4.  
  5. /* structure to hold metrics for a particular paper type */
  6.  
  7. struct PaperMetrics {
  8.   char *Name;                   /* name of paper type */
  9.  
  10.   long PaperHeight;             /* height of paper in 72dpi units */
  11.   long PaperWidth;              /* width of paper in 72dpi units */
  12.  
  13.   char *TitleFont;              /* font use for non-gaudy titles */
  14.   char *PortraitFont;           /* font to use for portrait text */
  15.   char *LandscapeFont;          /* font to use for landscape text */
  16.  
  17.   char *GaudyPNFont;            /* font to use for gaudy mode page numbers */
  18.   char *GaudyDateFont;          /* font to use for gaudy mode dates */
  19.   char *GaudyTitleFont;         /* font to use for gaudy mode title */
  20.   char *ClassificationFont;     /* font to use for classification header/footer */
  21.  
  22.   long GaudyBoxWidth;           /* width of boxes in gaudy mode */
  23.   long GaudyBoxHeight;          /* height of boxes in gaudy mode */
  24.   long GaudyBarHeight;          /* height of bar in gaudy mode */
  25.  
  26.   long ColumnSep;                /* column separator */
  27.  
  28. };
  29.  
  30. extern struct PaperMetrics PaperTypes[];
  31.  
  32. /* define margins around printable area */
  33. #ifndef SILLY_PAGE
  34.  
  35. #define    PAGE_LEFT_MARGIN    25L
  36. #define    PAGE_RIGHT_MARGIN    25L
  37. #define    PAGE_TOP_MARGIN        25L
  38. #define    PAGE_BOT_MARGIN        36L
  39.  
  40. #define PAGE_LANDSCAPE_XOFFS    0L        /* origin X translate when in landscape mode */
  41. #define PAGE_LANDSCAPE_YOFFS    0L        /* origin Y translate when in landscape mode */
  42.  
  43. #else
  44.  
  45. #define    PAGE_LEFT_MARGIN    25L            /* margin on left size of page */
  46. #define    PAGE_RIGHT_MARGIN    25L            /* margin on right side of page */
  47. #define    PAGE_TOP_MARGIN        75L            /* margin at top of page */
  48. #define    PAGE_BOT_MARGIN        36L            /* margin at bottom of page */
  49.  
  50. #define PAGE_LANDSCAPE_XOFFS    0L        /* origin X translate when in landscape mode */
  51. #define PAGE_LANDSCAPE_YOFFS    0L        /* origin Y translate when in landscape mode */
  52.  
  53. #endif
  54.  
  55. /* define the scaling factor used */
  56. #define    SCALE            100L
  57.  
  58. /* "colour" of gaudy mode artifacts */
  59. #define    BOXGRAY            "0.7"
  60. #define    BARGRAY            "0.95"
  61.  
  62.  
  63. /* scaled versions of the dimensions above */
  64. /*#define    BW            (BOX_WIDTH * SCALE)
  65. #define    BH            (BOX_HEIGHT * SCALE)
  66. #define    BS            (BAR_HEIGHT * SCALE) */
  67.  
  68.